import Vue from 'vue';
import Router from 'vue-router';

const Home = (resolve) => {
	import('components/Home/Home.vue').then((module) => {
			resolve(module)
	})
}

const My = (resolve) => {
	import('components/My/My.vue').then((module) => {
			resolve(module)
	})
}

Vue.use(Router)

export default new Router({
  routes: [
	  {
			path: '*',
			redirect: '/Home'
		},
    {
      path: '/Home',
      name: 'Home',
      component: Home
    },
    {
      path: '/My',
      name: 'My',
      component: My
    }
  ]
})
